/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package tr3dtris.game.models.pieces;

import tr3dtris.game.models.CellArray;

/**
 *
 * @author Luciano
 */
public class PieceOutOfGridException extends PieceException
{

    protected AbstractPiece piece;
    protected CellArray grid;
    protected int x;
    protected int y;

    public PieceOutOfGridException(AbstractPiece piece, CellArray grid, int x, int y)
    {
        this(piece, grid, x, y, "Piece is out of the grid");
    }

    public PieceOutOfGridException(AbstractPiece piece, CellArray grid, int x, int y, String message)
    {
        super(message);
        this.piece = piece;
        this.grid = grid;
        this.x = x;
        this.y = y;
    }


}
